import Layout from '@/layout';

const financialRouter = {
  path: '/financial',
  component: Layout,
  redirect: '/financial',
  name: 'Financial',
  meta: {
    title: '财务',
    icon: 'clipboard',
  },
  children: [
    {
      path: 'capitalFlow',
      component: () => import('@/views/financial/capitalFlow'),
      name: 'capitalFlow',
      meta: { title: '资金流水', icon: '' },
    },
    {
      path: 'transferRecord',
      component: () => import('@/views/financial/transferRecord'),
      name: 'transferRecord',
      meta: { title: '转账记录', icon: '' },
    },
    {
      path: 'statement',
      component: () => import('@/views/financial/statement'),
      name: 'statement',
      meta: { title: '账单管理', icon: '' },
    },
    {
      path: 'setting',
      component: () => import('@/views/financial/setting'),
      name: 'setting',
      meta: { title: '转账设置', icon: '' },
    },
    {
      path: 'examine',
      component: () => import('@/views/financial/examine'),
      name: 'examine',
      meta: { title: '支付审核', icon: '' },
    },
  ],
};

export default financialRouter;
